import 'package:flutter/material.dart';
import 'package:get/get.dart';

class MySearch extends StatelessWidget {
  const MySearch({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.fromLTRB(10, 0, 10, 12),
      color: Colors.black,
      width: Get.width,
      height: 40,
      child: Expanded(
        flex: 1,
        child: Container(
          color: const Color.fromRGBO(24, 24, 24, 1),
          child: const Center(
              child: Row(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Icon(
                Icons.search,
                color: Colors.white,
                size: 20,
              ),
              SizedBox(
                width: 5,
              ),
              Text(
                "搜索",
                style: TextStyle(color: Colors.white),
              )
            ],
          )),
        ),
      ),
    );
  }
}
